//
//  PzHomeGuideView.swift
//  Pz
//
//  Created by 蓝鳍互娱 on 2024/6/26.
//

import Foundation
import UIKit
import SnapKit
import AVFoundation
class PzPhotoView: UIView {
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor.clear
        creatSubView()
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    lazy var photoAumBtn: UIButton = {
        let btn = UIButton()
        btn.addTarget(self, action: #selector(photoAum), for: .touchUpInside)
        btn.setBackgroundImage(UIImage(named: "pzNavBackIcon"), for: .normal)
        return btn
    }()
    lazy var photoBtn: UIButton = {
        let btn = UIButton()
        btn.addTarget(self, action: #selector(photo), for: .touchUpInside)
        btn.setBackgroundImage(UIImage(named: "pzNavBackIcon"), for: .normal)
        return btn
    }()
    lazy var photoChangeBtn: UIButton = {
        let btn = UIButton()
        btn.addTarget(self, action: #selector(photoChange), for: .touchUpInside)
        btn.setBackgroundImage(UIImage(named: "pzNavBackIcon"), for: .normal)
        return btn
    }()
    
    func creatSubView() {
        self.addSubview(photoAumBtn)
        self.addSubview(photoBtn)
        self.addSubview(photoChangeBtn)
        
        photoAumBtn.snp.makeConstraints { make in
            make.left.equalTo(103.fitScale())
            make.top.equalTo(98.fitScale())
            make.width.equalTo(70.fitScale())
            make.height.equalTo(70.fitScale())
        }
        photoBtn.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(73.fitScale())
            make.width.equalTo(113.fitScale())
            make.height.equalTo(113.fitScale())
        }
        photoChangeBtn.snp.makeConstraints { make in
            make.right.equalTo(-103.fitScale())
            make.top.equalTo(98.fitScale())
            make.width.equalTo(70.fitScale())
            make.height.equalTo(70.fitScale())
        }
    }
    @objc func photoAum(){
        
    }
    @objc func photo(){
        
    }
    @objc func photoChange(){
        
    }
}
